#ifndef CUSTOMER_H_
#define CUSTOMER_H_

#include <string>
#include <vector>
#include <sstream>
// other types
#include "Street_address.h"  

using namespace std;

struct Customer {
public:
    // constructors
    Customer (int id, string n, Street_address a);
        
   // utility functions
    string display() const;
    string save(); //AS-C3
    int get_id() const;
    string get_name() const;
    static bool SortCustomersByName(const Customer& a, const Customer & b); // MA-S3
    static int findCustomerByName(const vector<Customer>& cust, const string& name);  // MA-S3
    static int findCustomerById(const vector<Customer>& cust, const int id);
	
private:
   //constants
     
   // private data
    int cust_id;
    string cust_name;
    Street_address addr;
};


#endif //CUSTOMER_H_
